%%% Preamble
\documentclass[paper=a4, fontsize=12pt]{scrartcl}	% Article class of KOMA-script with 11pt font and a4 format
\usepackage[T1]{fontenc}
\usepackage{fourier}

\usepackage[english]{babel}															% English language/hyphenation
\usepackage[protrusion=true,expansion=true]{microtype}				% Better typography
\usepackage{amsmath,amsfonts,amsthm}										% Math packages
\usepackage[pdftex]{graphicx}														% Enable pdflatex
\usepackage{url}

\usepackage{longtable}
\usepackage{multirow}
\usepackage{hhline}
\usepackage{booktabs}

%%% Listing settings
\usepackage{color}
\usepackage{xcolor}
\usepackage{listings}

%%% Avoid break of a word with \nohyphens{}
\usepackage{hyphenat}

\usepackage{caption}
\DeclareCaptionFont{white}{\color{white}}
\DeclareCaptionFormat{listing}{\colorbox{gray}{\parbox{\textwidth}{#1#2#3}}}
\captionsetup[lstlisting]{format=listing,labelfont=white,textfont=white}

\lstset{
         %basicstyle=\footnotesize\ttfamily, % Standardschrift
         numbers=left,               % Ort der Zeilennummern
         numberstyle=\tiny,          % Stil der Zeilennummern
         %stepnumber=2,               % Abstand zwischen den Zeilennummern
         numbersep=5pt,              % Abstand der Nummern zum Text
         tabsize=2,                  % Groesse von Tabs      
         xleftmargin=10pt
}

%%% Custom sectioning (sectsty package)
%\usepackage{sectsty}												% Custom sectioning (see below)
%\allsectionsfont{\centering \normalfont\scshape}	% Change font of al section commands


%%% Shaded Div
\usepackage{framed, xcolor}
\definecolor{shadecolor}{gray}{.85}

%%% Custom headers/footers (fancyhdr package)
\usepackage{fancyhdr}
\pagestyle{fancyplain}
\fancyhead{}														% No page header
%\fancyfoot[L]{\small \url{myurl.de}}		% You may remove/edit this line 
\fancyfoot[C]{}													% Empty
\fancyfoot[R]{\thepage}									% Pagenumbering
\renewcommand{\headrulewidth}{0pt}			% Remove header underlines
\renewcommand{\footrulewidth}{0pt}				% Remove footer underlines
\setlength{\headheight}{13.6pt}


%%% Equation and float numbering
\numberwithin{equation}{section}		% Equationnumbering: section.eq#
\numberwithin{figure}{section}			% Figurenumbering: section.fig#
\numberwithin{table}{section}				% Tablenumbering: section.tab#

%%% Dont set a page number on the title page
\renewcommand*{\titlepagestyle}{empty}

%%% Maketitle metadata
\newcommand{\horrule}[1]{\rule{\linewidth}{#1}} 	% Horizontal rule

\title{
		%\vspace{-1in} 	
		\usefont{OT1}{bch}{b}{n}
		\includegraphics[scale=0.09]{images/upm-logo.png}\\		
		\normalfont \normalsize \textsc{Universidad Polit\'ecnica de Madrid} \\ [25pt]		
		\horrule{1pt} \\[0.4cm]
		\huge An Introduction to Behavior Driven Development (BDD) by means of JBehave \\
		\horrule{1pt} \\[0.5cm]
}
\author{
	\normalfont 							\normalsize
        R. Paszkiewicz, N. Rennhack, S. Nitz \\[-3pt]		\normalsize
        %\today
}
\date{%
    \today% thats the default I guess
    \\[2\baselineskip]% Space between date and abstract
    \normalfont\normalsize%
    \parbox{0.8\linewidth}{%
        This report will give a quick and briefly introduction into \textit{Behavior Driven Development} (BDD). First a definition of BDD and its process cycle is given and current problems with deprecated processes like \textit{Test Driven Development} (TDD) are shown. Two essential parts of BDD are the \textit{Gherkin Description Language} and the usage of \textit{Mock Objects}, which will be covered after the general introduction. After that, different tools supporting BDD should be presented. Thereby the attention should be turned to a Java tool called \textit{JBehave}. Finally a software development life cycle comparison framework is shown and a final conclusion of BDD is given.
    }
}

%%% No block set in tables
\usepackage{array}
\newcolumntype{v}[1]{%
>{\raggedright\hspace{0pt}}p{#1}%
}

%%% Links and Refs
\usepackage{hyperref}
\hypersetup{
	%bookmarks=true,
	%unicode=false,
	%pdftoolbar=false,
	%pdfmenubar=false,
	pdftitle={Master's Thesis},
	pdfauthor={Stefan Nitz},
	pdfsubject={Integration of Heterogeneous Mobile Devices into an EDA},
	pdfkeywords={EDA, Event Processing, CEP},
	pdfnewwindow=true,
	colorlinks=true,
	breaklinks=true,
	linkcolor=black,
	menucolor=black,
	%pagecolor=black,
	urlcolor=black,
	citecolor=black,
	%linkcolor=darkblue,
	%menucolor=darkblue,
	%pagecolor=darkblue,
	%urlcolor=darkblue
	%citecolor=darkblue	
}

%%% Begin document
\begin{document}

%---------------------------------
% Title
%---------------------------------
\maketitle


%---------------------------------
% Table of Contents
%---------------------------------
\clearpage
%\addcontentsline{toc}{chapter}{Inhaltsverzeichnis}
\tableofcontents
\newpage
%---------------------------------
% Abbreviations
%---------------------------------
\clearpage
\input{misc/abbreviations}
\newpage

%---------------------------------
% Sections
%---------------------------------
\input{sections/1_def-history}
\input{sections/2_gherkin-dl}
\input{sections/3_mock-objects}
\input{sections/4_tools}
\input{sections/5_comparison-framework}
\input{sections/6_conclusion}

%---------------------------------
% Figures
%---------------------------------
\clearpage
\listoffigures
\addcontentsline{toc}{section}{List of Figures}

%---------------------------------
% Tables
%---------------------------------
\clearpage
\listoftables
\addcontentsline{toc}{section}{List of Tables}

%---------------------------------
% Listing-Verzeichnis
%---------------------------------
%\clearpage
%\lstlistoflistings
%\addcontentsline{toc}{chapter}{Listingverzeichnis}


%---------------------------------
% Source and Literature
%---------------------------------
\clearpage
%\input{misc/literaturverzeichnis}
\bibliographystyle{ieeetran}
\bibliography{bibtex/library}
\addcontentsline{toc}{section}{Bibliography}

%---------------------------------
% Appendix
%---------------------------------
%\begin{appendix}
%\appendix
%\section{Appendix}
%\label{appendix}
%\input{appendix/A_comparison-framework}


\end{document}